# -*- coding: utf-8 -*-

class MetaDataObject():
  """Utility class to hold metadata for assotiated feature."""
  STATE_INSERT = 'insert'
  STATE_DELETE = 'delete'
  STATE_NOT_CHANGED = 'NotChanged'
  
  def __init__(self, featureObject=None):
    """Object constructor."""
    self.featureObject = featureObject #feature object where metadata stored
    self.ID = None                     # Meta object ID from database
    self.tag = None                    # Tag for this metadata
    self.mimeType = None               # Mimetype of the data
    self.meta = None                   # Some additional info
    self.data = None                   # Data
    self.filename = None               # This metadata object could be stored in the file
                                       # If self.data is None it could be found in the file
    self.state = self.STATE_NOT_CHANGED     # One of Insert, Delete or Unchanged
